package cn.itcast.dtx.seatademo.bank1.controller;

import cn.itcast.dtx.seatademo.bank1.service.TestGlobalTransService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Description :
 * @Version : V1.0.0
 * @Date : 2022/7/1 15:16
 */
@RestController
@RequestMapping(value = "/test/")
public class TestGlobalTrans {

    @Resource
    private TestGlobalTransService service;

    @GetMapping("/seataTrans")
    public String testSeataTrans() throws Exception {
        service.testTrans();
        return "success";
    }
}
